<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Welcome extends CI_Controller {

//@todo : comments in pantings-> queries
    public function index() {
        //$this->output->cache(10);
        $this->load->helper(array('url', 'html'));
        $data['title'] = "Hionidis Kostas Oil Paintings Website - Selling Oil Paintings";
        $data['description'] = "
            Painting the sound and the scent of the sea in Greece.
            Using oil on canvas and memories of images Kostas Hionidis tries 
            to paint the sound and aroma of the water and air, of the sea 
            and the sky. Seas that are calm or wild, bright or dark, blue, 
            green or grey take shape on their own on the white canvas.";
        $this->load->view('welcome_view', $data);
        $this->load->view('gallery_view', $data);
        $this->load->view('biography', $data);
        $this->load->view('footer', $data);
    }

    public function paintings() {
        ////$this->output->cache(10);
        $data['title'] = "Hionidis Kostas Oil Paintings Website - Oil Paintings Gallery";
        $data['description'] = "
           Oil paintings gallery of categories maritime, still life and various 
           various paintings.
           ";
        $this->load->helper(array('url', 'html'));
        $this->load->view('welcome_view', $data);
        $this->load->view('gallery_categories_view');
        $this->load->view('footer');
    }

    public function maritime($page) {
        //$this->output->cache(10);
        $this->load->helper(array('url', 'html'));
        $data['page'] = $page;
        $data_welcome['title'] = "Hionidis Kostas Oil Paintings Website - 
            Seascapes/Maritime Oil Paintings";
        $data_welcome['description'] = "
           Maritime/seascapes oil paintings of Kostas Hionidis.
           ";
        $this->load->model('sea');
        $data['query'] = $this->sea->get_paintings($page);
        $data['pages'] = $this->sea->get_total_number_of_paintings();
        $this->load->view('welcome_view', $data_welcome);
        $this->load->view('category_1_view', $data);
        $this->load->view('footer');
    }

    public function still_life($page) {
        //$this->output->cache(10);
        $this->load->helper(array('url', 'html'));
        $data['page'] = $page;
        $data_welcome['title'] = "Hionidis Kostas Oil Paintings Website - 
        Oil Paintings of Still Life";
        $data_welcome['description'] = "
           Still-life oil paintings of Kostas Hionidis.
           ";
        $this->load->model('still');
        $data['query'] = $this->still->get_paintings($page);
        $data['pages'] = $this->still->get_total_number_of_paintings();
        $this->load->view('welcome_view', $data_welcome);
        $this->load->view('category_3_view', $data);
        $this->load->view('footer');
    }

    public function miscellaneous($page) {
        //$this->output->cache(10);
        $this->load->helper(array('url', 'html'));
        $data['page'] = $page;
        $data_welcome['title'] = "Hionidis Kostas Oil Paintings Website - 
        Various Oil Paintings";
        $data_welcome['description'] = "
           Various oil paintings of Kostas Hionidis.
           ";
        $this->load->model('other');
        $data['query'] = $this->other->get_paintings($page);
        $data['pages'] = $this->other->get_total_number_of_paintings();
        $this->load->view('welcome_view', $data_welcome);
        $this->load->view('category_4_view', $data);
        $this->load->view('footer');
    }

    public function test($page) {
        ////$this->output->cache(10);
        $this->load->helper(array('url', 'html'));
        $data['page'] = $page;
        $data_welcome['title'] = "Hionidis Kostas Oil Paintings Website - 
        Various Oil Paintings";
        $data_welcome['description'] = "
           Various oil paintings of Kostas Hionidis.
           ";
        $this->load->model('other');
        $data['query'] = $this->other->get_paintings($page);
        $data['pages'] = $this->other->get_total_number_of_paintings();
        $this->load->view('welcome_view', $data_welcome);
        $this->load->view('category_test_4_view', $data);
        $this->load->view('footer');
    }

}
